package com.ding.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Di_messageDto {

    @ApiModelProperty(value = "序号")
    private String id;

    @ApiModelProperty(value = "发送人id")
    private String sendUserId;

    @ApiModelProperty(value = "发送人姓名")
    private String sendUserName;

    @Column(nullable = false)
    @ApiModelProperty(value = "接收人ids")
    private String receiveUserId;

    @ApiModelProperty(value = "接收人姓名s")
    private String receiveUserName;

    @Column(nullable = false)
    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "消息详情地址")
    private String actUrl;

    @Column(nullable = false)
    @ApiModelProperty(value = "提醒方式")
    private Integer remindType;

    @ApiModelProperty(value = "发送时间", example = "2020-10-22 10:03:22")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    @ApiModelProperty(value = "发送失败错误提示")
    private String sendError;

    @ApiModelProperty(value = "统一消息平台id")
    private String remoteid;
}
